quartz: squash compiler warning about enums
authorChristian Hergert <christian@hergert.me>
Thu, 1 Oct 2015 01:25:07 +0000 (18:25 -0700)
committerJohn Ralls <jralls@ceridwen.us>
Thu, 5 May 2022 23:08:54 +0000 (16:08 -0700)
We don’t care about the other enums, fine to squash the warning.

gdk/quartz/gdkevents-quartz.c

index 0d492c1619b91351d8392aa561dcbdb63bae011f..1b43add865caa29fed7e2473ab0b91ecbc39a280 100644 (file)
@@ -396,7 +396,7 @@ get_window_point_from_screen_point (GdkWindow *window,
 static gboolean
 is_mouse_button_press_event (NSEventType type)
 {
-  switch (type)
+  switch ((int)type)
     {
       case GDK_QUARTZ_LEFT_MOUSE_DOWN:
       case GDK_QUARTZ_RIGHT_MOUSE_DOWN:
@@ -1029,7 +1029,7 @@ fill_button_event (GdkWindow *window,
   state = get_keyboard_modifiers_from_ns_event (nsevent) |
          _gdk_quartz_events_get_current_mouse_modifiers ();
 
-  switch ([nsevent type])
+  switch ((int)[nsevent type])
     {
     case GDK_QUARTZ_LEFT_MOUSE_DOWN:
     case GDK_QUARTZ_RIGHT_MOUSE_DOWN: